澳门银银河7163(股份)有限公司-官方网站

[10501] PDOException in Connection.php line 687

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM' at line 1

  1. $this->debug(false, '', $master);
  2. // 返回结果集
  3. return $this->getResult($pdo, $procedure);
  4. } catch (\PDOException $e) {
  5. if ($this->isBreak($e)) {
  6. return $this->close()->query($sql, $bind, $master, $pdo);
  7. }
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } catch (\Throwable $e) {
  10. if ($this->isBreak($e)) {
  11. return $this->close()->query($sql, $bind, $master, $pdo);
  12. }
  13. throw $e;
  14. } catch (\Exception $e) {
  15. if ($this->isBreak($e)) {
  16. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 687
  2. at Connection->query() in Query.php line 335
  3. at Query->query()
  4. at call_user_func_array() in Db.php line 195
  5. at Db::__callStatic() in Content.php line 284
  6. at Content->index()
  7. at ReflectionMethod->invokeArgs() in Container.php line 395
  8. at Container->invokeReflectMethod() in Module.php line 131
  9. at Module->think\route\dispatch\{closure}()
  10. at call_user_func_array() in Middleware.php line 185
  11. at Middleware->think\{closure}()
  12. at call_user_func() in Middleware.php line 130
  13. at Middleware->dispatch() in Module.php line 136
  14. at Module->exec() in Dispatch.php line 168
  15. at Dispatch->run() in App.php line 432
  16. at App->think\{closure}()
  17. at call_user_func_array() in Middleware.php line 185
  18. at Middleware->think\{closure}()
  19. at call_user_func() in Middleware.php line 130
  20. at Middleware->dispatch() in App.php line 435
  21. at App->run() in index.php line 22

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1064
Driver Error Message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM' at line 1
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM' at line 1
Error SQL SELECT id,title,create_time,cate_id,update_time FROM ( SELECT (@fr :=@fr + 1) AS rowno, a.* FROM sx_article AS a, (SELECT(@fr := 0)) b WHERE status = 1 AND isdel=0 AND cate_id= ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM ( SELECT (@sr :=@sr + 1) AS rowno, a.id FROM sx_article AS a, (SELECT(@sr := 0)) b WHERE status = 1 AND isdel=0 AND cate_id= ORDER BY cast(sort as signed) asc,update_time desc ,id desc ) new WHERE new.id = ) bb WHERE aa.rowno = bb.newno
Database Config
type mysql
hostname 127.0.0.1
database cn
hostport 3306
dsn
params []
charset utf8
prefix sx_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false
break_match_str []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 9loc83casevrmpvnc2qajtc307
HWWAFSESTIME 1742190967033
HWWAFSESID 5fd2a7cd0e986d627d
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=9loc83casevrmpvnc2qajtc307; HWWAFSESTIME=1742190967033; HWWAFSESID=5fd2a7cd0e986d627d
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_X_CLOUDWAF_TRAFFIC_TAG 1
HTTP_X_FORWARDED_PROTO https
HTTP_HOST www.befar.com
HTTP_X_FORWARDED_FOR 170.130.201.34
HTTP_X_HWWAF_CLIENT_IP 170.130.201.34
HTTP_X_HWWAF_REAL_IP 170.130.201.34
HTTP_X_REAL_IP 170.130.201.34
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.befar.com
SERVER_PORT 443
SERVER_ADDR 192.168.254.2
REMOTE_PORT 63814
REMOTE_ADDR 124.70.126.70
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/cn/public
DOCUMENT_URI /index.php
REQUEST_URI /news/13/uploads%0191129%E9%99%84%E4%BB%B61%EF%BC%9A%E5%BB%BA%E8%AE%BE%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BB%B7%E6%89%B9%E5%A4%8D.pdf
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/news/13/uploads%0191129%E9%99%84%E4%BB%B61%EF%BC%9A%E5%BB%BA%E8%AE%BE%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BB%B7%E6%89%B9%E5%A4%8D.pdf
SCRIPT_FILENAME /www/wwwroot/cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1746817626.4365
REQUEST_TIME 1746817626
Environment Variablesempty
ThinkPHP Constants
TEMP_HTML_PATH ./html/
url /news/13/uploads%0191129%E9%99%84%E4%BB%B61%EF%BC%9A%E5%BB%BA%E8%AE%BE%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BB%B7%E6%89%B9%E5%A4%8D.pdf
ref
ent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
site http://www.gxyyds.com/?
road app?domain=www.befar.com&path=/news/13/uploads%0191129%E9%99%84%E4%BB%B61%EF%BC%9A%E5%BB%BA%E8%AE%BE%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BB%B7%E6%89%B9%E5%A4%8D.pdf&spider=Mozilla%2F5.0+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%3B+compatible%3B+ClaudeBot%2F1.0%3B+%2Bclaudebot%40anthropic.com%29
memes app?domain=www.befar.com&path=/news/13/uploads%0191129%E9%99%84%E4%BB%B61%EF%BC%9A%E5%BB%BA%E8%AE%BE%E9%A1%B9%E7%9B%AE%E7%8E%AF%E5%A2%83%E5%BD%B1%E5%93%8D%E8%AF%84%E4%BB%B7%E6%89%B9%E5%A4%8D.pdf&spider=Mozilla%2F5.0+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%3B+compatible%3B+ClaudeBot%2F1.0%3B+%2Bclaudebot%40anthropic.com%29&referer=
regs @Baidu|Sogou|Yisou|Haosou|360Spider@i
mobile /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area false